﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrganList.aspx.cs" Inherits="Page_OrganList" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>培训机构</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/JDEduTrain.Web/Style/Css/Css.css" rel="stylesheet" type="text/css" />
    <base target="_self" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box01" id="tblContent">
            <tr>
                <td valign="top" width="200">
                    <div id="tvDepartment" class="FormTree ScrollDiv">
                        <asp:CheckBoxList ID="cblOrgan" runat="server" RepeatDirection="Vertical" OnPreRender="cblOrgan_PreRender">
                        </asp:CheckBoxList>
                    </div>
                </td>
            </tr>
            <tr height="24" width="200">
                <td align="center">
                    <asp:Button runat="server" ID="btnConfirm" Text="确定" CssClass="InputBtn" OnClick="btnConfirm_Click" />&nbsp;
                    <input type="button" value="取消" onclick="window.close();" class="InputBtn" />
                    <asp:HiddenField ID="hdExcludeID" runat="server" />
                    <asp:HiddenField ID="hdSelectedID" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>

    <script language="javascript" type="text/javascript">
        function PageResize() {
            var height = document.body.clientHeight;
            document.getElementById("tblContent").height = height - 25;
            document.getElementById("tvDepartment").style.height = height - 25;
        }
        PageResize();
        window.onresize = PageResize;

        var isPostBack = '<%=IsPostBack%>';
        if (isPostBack != 'True') {
            var retValFormat = '<%=Request["ReturnValueFormat"] %>';
            if (retValFormat != null)
                var retValFormatList = retValFormat.split('|');
            var pDocument = window.dialogArguments;
            for (var i = 0; i < retValFormatList.length; i++) {
                var retValPair = retValFormatList[i].split(':');
                if (retValPair[1] == 'ExcludeID') {
                    document.getElementById('hdExcludeID').value = pDocument.getElementById(retValPair[0]).value;
                }
                else if (retValPair[1] == 'ID') {
                    document.getElementById('hdSelectedID').value = pDocument.getElementById(retValPair[0]).value;
                }
            }
            document.forms[0].submit();
        }
    </script>

</body>
</html>
